﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewReferralsOtherReports.aspx.cs" Inherits="referrals.Layouts.referrals.NewReferralsOtherReports" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link href="../1033/STYLES/referrals/referralsmaster.css" rel="stylesheet" />
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<asp:Panel runat="server" ID="Panel1">
    <asp:GridView runat="server" ID="grdDetails" AutoGenerateColumns="false" ShowHeader="False" OnPageIndexChanging="grdDetails_PageIndexChanging" OnRowDataBound="grdDetails_RowDataBound" AllowPaging="True" PageSize="1">
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Table runat="server" ID="tblHeader">
                        <asp:TableRow ID="TableRow1" runat="server">
                            <asp:TableCell ID="TableCell1" runat="server">
                                <asp:Label ID="Label1" runat="server" Text='<%# String.Format("{0} {1} {2} {3} {4}", "Name: ", Eval("Title"), Eval("MiddleName"), Eval("FirstName"), Eval("LastName")) %>'></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell>
                                <asp:Label ID="Label2" runat="server" Text='<%# String.Format("{0} {1}", "NHS Number: ", Eval("NHSNumber")) %>'></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell>
                                <asp:Label runat="server" ID="lblDOBHeader" Text="Date of Birth: "></asp:Label><asp:Label runat="server" ID="lblDOB" Text='<%#Convert.ToDateTime(Eval("DOB")).ToString("dd/MM/yy") %>'></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell>
                                <asp:Label ID="lblDate" runat="server" Text='<%# GetAge(Convert.ToDateTime(Eval("DOB"))) %>' />
                            </asp:TableCell>
                            <asp:TableCell>
                                <asp:Label ID="lblGender" runat="server" Text='<%# Eval("Gender") %>' Visible="False" />
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                    <asp:Table runat="server" ID="Table1">
                        <asp:TableRow ID="TableRow2" runat="server">
            <asp:TableCell><label>Referral Information</label></asp:TableCell>
            <asp:TableCell><label>Locality Information</label></asp:TableCell>
            <asp:TableCell><label>Referral Status</label></asp:TableCell>

        </asp:TableRow>
        <asp:TableRow ID="TableRow3" runat="server">
            <asp:TableCell>Date Referred:
                <input id="Text1" type="text" /></asp:TableCell>
            <asp:TableCell>Area:
                <input id="Text2" type="text" /></asp:TableCell>
            <asp:TableCell>Urgency:
                <select id="Select1" name="D1">
                    <option></option>
                </select></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow4" runat="server">
            <asp:TableCell>Referred By:
                <select id="Select4" name="D4">
                    <option></option>
                </select></asp:TableCell>
            <asp:TableCell>Current Location:<select id="Select3" name="D3">
                <option></option>
                </select></asp:TableCell>
            <asp:TableCell>Stage:
                <select id="Select2" name="D2">
                    <option></option>
                </select></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow5" runat="server">
            <asp:TableCell>Reason Referred:
                <select id="Select6" name="D6">
                    <option></option>
                </select></asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
            <asp:TableCell>Papers Location:
                <select id="Select5" name="D5">
                    <option></option>
                </select></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow6" runat="server">
            <asp:TableCell>
                <textarea id="TextArea1" cols="20" name="S1" rows="2"></textarea></asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow7" runat="server">
            <asp:TableCell>During Meeting</asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow8" runat="server">
            <asp:TableCell>&nbsp;</asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow9" runat="server">
            <asp:TableCell><label>1. Accept or Reject Referral</label></asp:TableCell>
            <asp:TableCell><label>2. Allocate if Neccessary</label></asp:TableCell>
            <asp:TableCell><label>3. Document Discussion</label></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow10" runat="server">
            <asp:TableCell>Outcome:
                <select id="Select7" name="D7">
                    <option></option>
                </select></asp:TableCell>
            <asp:TableCell>Clinician 1: <select id="Select8" name="D8">
                <option></option>
                </select></asp:TableCell>
            <asp:TableCell>
                <textarea id="TextArea2" cols="20" name="S2" rows="2"></textarea></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow11" runat="server">
            <asp:TableCell>&nbsp;</asp:TableCell>
            <asp:TableCell>Clinician 2:
                <select id="Select9" name="D9">
                    <option></option>
                </select></asp:TableCell>
            <asp:TableCell>Discuss next week Yes
                <input id="Radio1" checked="checked" name="R1" type="radio" value="V1" /> No<input id="Radio2" name="R2" type="radio" value="V1" /></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow12" runat="server">
            <asp:TableCell ColumnSpan="2"><label>4. Track Progress - These fields must be completed as they relate to  Key Performance Indicators</label></asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow13" runat="server">
            <asp:TableCell><label>review</label></asp:TableCell>
            <asp:TableCell><label>Response</label></asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow14" runat="server">
            <asp:TableCell>This referral must be reviewed by:
                <input id="Text3" type="text" /></asp:TableCell>
            <asp:TableCell>The outcome of the review must be communicated to the referrer by:<input id="Text4" type="text" /></asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow15" runat="server">
            <asp:TableCell><label>Assessment</label></asp:TableCell>
            <asp:TableCell><label>Report</label></asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow16" runat="server">
            <asp:TableCell>This assessment must be completed by 17/06/2013</asp:TableCell>
            <asp:TableCell>A report on this referral must be sent by:</asp:TableCell>
            <asp:TableCell>Final Outcome: 
                <select id="Select10" name="D10">
                    <option></option>
                </select></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow17" runat="server">
            <asp:TableCell>Assessment Date: <input id="Text5" type="text" /></asp:TableCell>
            <asp:TableCell>Date Report Sent: <input id="Text6" type="text" /></asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow18" runat="server">
            <asp:TableCell>&nbsp;</asp:TableCell>
            <asp:TableCell>&nbsp;</asp:TableCell>
            <asp:TableCell>
                <input id="Button1" type="button" value="Update and Close" /></asp:TableCell>
        </asp:TableRow>
                    </asp:Table>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
        <%--<asp:GridView runat="server" ID="gridView3" AutoGenerateColumns="False" ShowHeader="False" GridLines="None" OnRowDataBound="OnRowDataBound" OnPageIndexChanging="gridView3_PageIndexChanging" AllowPaging="True" PageSize = "1">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <table>
                            
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>--%>
    </asp:Panel>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
New Referrals Other Reports
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
New Referrals Other Reports
</asp:Content>
